package net.gyapp.markim.core.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Auther:  winds
 * Email:   heardown@163.com
 * Date:    2018/7/19.
 * Desc:    用户
 */

@Entity
public class UserEntity implements IEntity, Serializable {
    private static final long serialVersionUID = -3658994798051250134L;
    @Id
    public Long id;  //用户id  登陆接口返回的id

    public String userImId; //im id 聊天用到的ID
    public String userName; //会员名
    public String userNumber;
    public String nick;     //昵称
    public String userAvatar;
    public String phone;
    public String password;
    public String salt;

    public String userType;
    public String userStatus;
    public String userQrUrl;
    public String userLevelId;
    public String deviceToken;
    public String createdTime;
    public String updatedTime;

    public String extra1;  //扩展字段1
    public String extra2;  //扩展字段2
    public String extra3;  //扩展字段3

    @Generated(hash = 1278390621)
    public UserEntity(Long id, String userImId, String userName, String userNumber,
            String nick, String userAvatar, String phone, String password,
            String salt, String userType, String userStatus, String userQrUrl,
            String userLevelId, String deviceToken, String createdTime,
            String updatedTime, String extra1, String extra2, String extra3) {
        this.id = id;
        this.userImId = userImId;
        this.userName = userName;
        this.userNumber = userNumber;
        this.nick = nick;
        this.userAvatar = userAvatar;
        this.phone = phone;
        this.password = password;
        this.salt = salt;
        this.userType = userType;
        this.userStatus = userStatus;
        this.userQrUrl = userQrUrl;
        this.userLevelId = userLevelId;
        this.deviceToken = deviceToken;
        this.createdTime = createdTime;
        this.updatedTime = updatedTime;
        this.extra1 = extra1;
        this.extra2 = extra2;
        this.extra3 = extra3;
    }

    @Generated(hash = 1433178141)
    public UserEntity() {
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "id=" + id +
                ", userImId='" + userImId + '\'' +
                ", userName='" + userName + '\'' +
                ", userNumber='" + userNumber + '\'' +
                ", nick='" + nick + '\'' +
                ", userAvatar='" + userAvatar + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", userType='" + userType + '\'' +
                ", userStatus='" + userStatus + '\'' +
                ", userQrUrl='" + userQrUrl + '\'' +
                ", userLevelId='" + userLevelId + '\'' +
                ", deviceToken='" + deviceToken + '\'' +
                ", createdTime='" + createdTime + '\'' +
                ", updatedTime='" + updatedTime + '\'' +
                ", extra1='" + extra1 + '\'' +
                ", extra2='" + extra2 + '\'' +
                ", extra3='" + extra3 + '\'' +
                '}';
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserImId() {
        return this.userImId;
    }

    public void setUserImId(String userImId) {
        this.userImId = userImId;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNumber() {
        return this.userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }

    public String getNick() {
        return this.nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getUserAvatar() {
        return this.userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return this.salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getUserType() {
        return this.userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getUserStatus() {
        return this.userStatus;
    }

    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }

    public String getUserQrUrl() {
        return this.userQrUrl;
    }

    public void setUserQrUrl(String userQrUrl) {
        this.userQrUrl = userQrUrl;
    }

    public String getUserLevelId() {
        return this.userLevelId;
    }

    public void setUserLevelId(String userLevelId) {
        this.userLevelId = userLevelId;
    }

    public String getDeviceToken() {
        return this.deviceToken;
    }

    public void setDeviceToken(String deviceToken) {
        this.deviceToken = deviceToken;
    }

    public String getCreatedTime() {
        return this.createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedTime() {
        return this.updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }

    public String getExtra1() {
        return this.extra1;
    }

    public void setExtra1(String extra1) {
        this.extra1 = extra1;
    }

    public String getExtra2() {
        return this.extra2;
    }

    public void setExtra2(String extra2) {
        this.extra2 = extra2;
    }

    public String getExtra3() {
        return this.extra3;
    }

    public void setExtra3(String extra3) {
        this.extra3 = extra3;
    }



}
